package com.cheikh.lazywaimai.network.service;

import com.cheikh.lazywaimai.model.bean.FileUrlReturn;

import okhttp3.MultipartBody;
import retrofit2.http.Multipart;
import retrofit2.http.POST;
import retrofit2.http.Part;
import rx.Observable;

public interface FileCommonService {

    /**
     * 单个上传文件或者图片
     * @param part
     * @return
     */
    @Multipart
    @POST("/upload?return=json")
    Observable<FileUrlReturn> singleFileUpload(@Part MultipartBody.Part part);
}